package com.ocean.entity.edu;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author xk
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Teacher {
    private Integer id;
    @ExcelProperty("教师姓名")
    private String tname;
    @ExcelProperty("性别")
    private String sex;
    @ExcelProperty("出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;
    @ExcelProperty("政治面貌")
    private String politics;
    private List<Course> list;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date ctime;

    public Teacher(String tname, String sex, Date birthday, String politics) {
        this.tname = tname;
        this.sex = sex;
        this.birthday = birthday;
        this.politics = politics;
    }
}
